import { FooterApi } from '@/api/api'

const footer = {
    namespaced: true,
    state: {
        centerList: [],
        footerInfo: {},
    },
    mutations: {

    },
    actions: {
        AfooterApi({ state }) {
            FooterApi.footerList().then((res) => {
                // console.log(3, res.data);
                const { centerList, footerInfo } = res.data
                state.centerList = centerList
                state.footerInfo = footerInfo
            });
        }
    }
}
export default footer